﻿// Copyright (c) 2006 Antu Corporation。 
// 创建人  ：LinJian
// 创建时间：2007-3-23 17:41:17
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Antu.Business.Config
{
    /// <!--
    /// 功能描述  : 功能描述
    /// 创建人  : LinJian
    /// 创建时间: 2007-3-23 17:41:30
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-3-23 17:41:31
    /// -->
    public class ChildSectionForSysFile:ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForSysFile()
        {
        }

        /// <summary>
        /// 构造函数(设置属性值)
        /// </summary>
        /// <param name="strAttributeVal">属性值</param>
        public ChildSectionForSysFile(string strAttributeVal)
        {
            SectionDescription = strAttributeVal;
        }

        /// <summary>
        /// 自定义字节属性值(节点描述)
        /// </summary>
        [ConfigurationProperty("SectionDescription", DefaultValue = "系统文件信息", IsRequired = false)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 100)]
        public String SectionDescription
        {
            get
            {
                return (String)this["SectionDescription"];
            }
            set
            {
                this["SectionDescription"] = value;
            }
        }

        /// <summary>
        /// 自定义字节名(系统文件存放信息)
        /// </summary>
        [ConfigurationProperty("FilePathInfo")]
        public ChildSectionForSysFileInfo FilePathInfo
        {
            get
            {
                return (ChildSectionForSysFileInfo)this["FilePathInfo"];
            }
            set
            {
                this["FilePathInfo"] = value;
            }
        }
    }

    #region 系统文件存放信息
    /// <!--
    /// 功能描述  : 系统文件存放信息
    /// 创建人  : linjian
    /// 创建时间: 2007-03-23
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-03-23
    /// -->
    public class ChildSectionForSysFileInfo : ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForSysFileInfo()
        {
        }


        #region 自定义字节属性
        /// <summary>
        /// 自定义字节属性（工程文件LDC默认的存放路径）
        /// </summary>
        [ConfigurationProperty("DefaultXmlSaveFile", DefaultValue = @"\Warehouses\temp.ldc", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String DefaultXmlSaveFile
        {
            get
            {
                return (String)this["DefaultXmlSaveFile"];
            }
            set
            {
                this["DefaultXmlSaveFile"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性（最近保存的工程文件的路径）
        /// </summary>
        [ConfigurationProperty("RecentFilesPath", DefaultValue = @"\RecentFiles\sys.lds", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String RecentFilesPath
        {
            get
            {
                return (String)this["RecentFilesPath"];
            }
            set
            {
                this["RecentFilesPath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性（DDC数据文件存放路径）
        /// </summary>
        [ConfigurationProperty("DdcFile", DefaultValue = @"\DDC\cd.ddc", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String DdcFile
        {
            get
            {
                return (String)this["DdcFile"];
            }
            set
            {
                this["DdcFile"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性（DDC坐标文件存放路径）
        /// </summary>
        [ConfigurationProperty("DdcCsfFile", DefaultValue = @"\DDC\cd.csf", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String DdcCsfFile
        {
            get
            {
                return (String)this["DdcCsfFile"];
            }
            set
            {
                this["DdcCsfFile"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(CAD模板文件存放路径)
        /// </summary>
        [ConfigurationProperty("CadTempletPath", DefaultValue = @"\CsfFiles\CAD_500template.csd", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String CadTempletPath
        {
            get
            {
                return (String)this["CadTempletPath"];
            }
            set
            {
                this["CadTempletPath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(CAD点样式模板文件存放路径)
        /// </summary>
        [ConfigurationProperty("CadStypeTempletPath", DefaultValue = @"\CadStyle\PntStyle.dwg", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String CadStypeTempletPath
        {
            get
            {
                return (String)this["CadStypeTempletPath"];
            }
            set
            {
                this["CadStypeTempletPath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(CAD文本样式存放路径)
        /// </summary>
        [ConfigurationProperty("CadTextFont", DefaultValue = @"C:\WINDOWS\Fonts\SIMLI.TTF", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String CadTextFont
        {
            get
            {
                return (String)this["CadTextFont"];
            }
            set
            {
                this["CadTextFont"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(坐标系文件存放路径)
        /// </summary>
        [ConfigurationProperty("CsfFilePath", DefaultValue = @"\CsfFiles\chengdu_local_54.csf", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String CsfFilePath
        {
            get
            {
                return (String)this["CsfFilePath"];
            }
            set
            {
                this["CsfFilePath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(连接打开的ＷＥＢ路径)
        /// </summary>
        [ConfigurationProperty("WebUrl", DefaultValue = "http://192.168.3.97/WebSite/Page/Modules/BusinessModules/Archiver/ArchiverShow.aspx", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{};'\"", MinLength = 1, MaxLength = 200)]
        public String WebUrl
        {
            get
            {
                return (String)this["WebUrl"];
            }
            set
            {
                this["WebUrl"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(储备统计的模板存放路径)
        /// </summary>
        [ConfigurationProperty("XslFilePath", DefaultValue = @"\StatTemplet\StoreStat\征地收购面积统计信息表.xls", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String XslFilePath
        {
            get
            {
                return (String)this["XslFilePath"];
            }
            set
            {
                this["XslFilePath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(储备统计的结果存放路径)
        /// </summary>
        [ConfigurationProperty("XslSaveFilePath", DefaultValue = @"\统计报表成果\征地收购面积统计信息表.xls", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String XslSaveFilePath
        {
            get
            {
                return (String)this["XslSaveFilePath"];
            }
            set
            {
                this["XslSaveFilePath"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(将ＣＡＤ信息导出为ＥＸＣＥＬ的模板存放路径)
        /// </summary>
        [ConfigurationProperty("ExcelWithCadInfoTempletPath", DefaultValue = @"\StatTemplet\CadastreStat\原宗地属性信息.xls", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"", MinLength = 1, MaxLength = 100)]
        public String ExcelWithCadInfoTempletPath
        {
            get
            {
                return (String)this["ExcelWithCadInfoTempletPath"];
            }
            set
            {
                this["ExcelWithCadInfoTempletPath"] = value;
            }
        } 
        #endregion
    }
    #endregion

}
